import * as vueRouter from "vue-router"

const routes: vueRouter.RouteRecordRaw[] = [
    {
        path:"/",
        name:"Home",
        component:() => import('../layout/index.vue'),
        children: [
            {
                path:"",
                component:() => import('../view/home.vue'), 
            },
            {
                path:"/friends",
                component:() => import('../view/friends.vue'), 
            },
            {
                path:"/find",
                component:() => import('../view/find.vue'), 
            },
        ]
    }
]

const router = vueRouter.createRouter({
    history:vueRouter.createWebHashHistory(),
    routes,
})


export default router